Delete a package that was previously added to the store. Deleted information cannot be recovered.
Parent Type: FileSystemPackageStore
Namespace: Microsoft.LearningComponents.Storage
Assembly: Microsoft.LearningComponents.Storage.dll
| C# |
|
public void DeletePackage ( ) |
packageId
The package to remove.
| Exception type | Condition |
| LearningStoreItemNotFoundException | Thrown if the packageId does not represent a package in the store. |
| LearningStoreConstraintViolationException | Thrown if the package cannot be deleted from LearningStore because there are other items in the store that depend upon it. For instance, a package for which there are attempts in LearningStore, cannot be deleted. |
If a file in the package cannot be deleted, the FileDeletionFailed event will be raised.